package com.eh.erd.sms.feign;

import com.eh.erd.sms.feign.fallback.CoreUserInfoClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zhuyuanwei
 * @version 1.0
 * @date 2021/5/25 9:20
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoFeign {

    @ApiOperation("校验手机号是否被注册")
    @PostMapping("/api/core/userInfo/checkMobile/{mobile}")
    Boolean checkMobile(@PathVariable String mobile);


}
